package com.gremlin;

import com.gremlin.config.Swagger3Config;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;

/**
 * Description: 启动类
 * @author: gremlin
 * Date: 2022/3/4 09:54
 * @version: 1.0.0
 */
@Slf4j
@Import({Swagger3Config.class})
@SpringBootApplication(scanBasePackages = {"com.gremlin"})
public class EmailApplication {

    public static void main(String[] args) {
        SpringApplication.run(EmailApplication.class, args);
    }

    @Bean
    public ApplicationRunner applicationRunner() {
        return applicationArguments -> {
            log.info("项目启动成功！！");
        };
    }
}


